package com.example.chapter3.homework.List;

public class CodeLanguage {
    private String name;
    private int imageId;
    private String rate;
    private String order;

    public  CodeLanguage(String order,String name,String rate,int imageId){
        this.name=name;
        this.imageId=imageId;
        this.rate=rate;
        this.order=order;
    }

    public  CodeLanguage(int order,String name,double rate,int imageId){
        this.name=name;
        this.imageId=imageId;
        this.rate=Double.toString(rate);
        this.order=Integer.toString(order);
    }

    public String getName(){
        return name;
    }

    public int getImageId(){
        return imageId;
    }

    public String getRate(){
        return rate;
    }

    public String getOrder(){
        return order;
    }
}
